<script type="text/javascript">
	function facebookConnected() {
		window.location = "<?php echo url_for('users/facebook') ?>";
	}
</script>

<form id="login" action="<?php echo url_for('users/login') ?>" method="post">
	<fieldset>
		<label>Email:</label>
		<?php echo $form['login_name']->render(array('class' => 'input-text input-reset')) ?>
		<label>Password:</label>
		<?php echo $form['password']->render(array('class' => 'input-text input-reset', 'value' => '*******')) ?>
		<input class="btn_submit" type="image" src="/images/btn_login.gif" alt="Login" />
		<span style="float: left; padding-left: 20px"><?php echo FacebookUtility::render_fbconnect_button('medium'); ?></span>
	</fieldset>
</form>

<script type="text/javascript">

	$(document).ready(function(){
		$('.input-reset').focus(function() { 
			$(this).attr('value','');
		});
	});

</script>